@echo off
title HOTKEY
set userPath=.\environment

REM package
rem call mvn clean install -Dmaven.test.skip=true

rem del HotKey
rmdir HOTKEY /s /q

rem create HotKey
mkdir HOTKEY
mkdir HOTKEY\conf

copy /y .\start.bat HOTKEY
copy /y .\reset-environment.bat HOTKEY
copy /y .\set-environment.bat HOTKEY
copy /y .\README.txt HOTKEY
xcopy /y .\src\main\resources\conf\*.json HOTKEY\conf /s
xcopy /y .\target\*.jar  HOTKEY\ /s
xcopy /y .\environment  HOTKEY\environment /s /i

%userPath%\7z\7z  a HOTKEY\HOTKEY.zip HOTKEY
echo.
echo -------completed!--------
choice /t 2 /d y /n >nul